package com.example.demo.mapper;

import com.example.demo.entity.Event;
import com.example.demo.entity.User;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression.DateTime;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface EventMapper {
    List<Event> list();

    List<Event> listByParams(@Param("startDate") Date startDate,@Param("endDate") Date endDate);

    int add(Event event);

    boolean changeEvent(Event event);

    Event getEventById(Integer id);

    boolean deleteById(Integer id);

    void updateStatus(Integer id);
}
